package br.com.gesclub.jsf.controller;

import static javax.faces.application.FacesMessage.SEVERITY_INFO;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

public class BaseController {

    protected FacesContext getFacesContext() {
        return FacesContext.getCurrentInstance();
    }

    protected void addSuccesulMessage(String message) {
        getFacesContext().addMessage(null, new FacesMessage(SEVERITY_INFO, message, null));
    }

}
